﻿using System.IO;

namespace ContainerVariations.Common
{
    public interface ISender
    {
        void Send(string message);
    }

    public class TextWriterSender : ISender
    {
        private readonly TextWriter _writer;

        public TextWriterSender(TextWriter writer)
        {
            _writer = writer;
        }

        public void Send(string message)
        {
            _writer.Write(message);
        }
    }
}